package com.key.win.business.chat.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.key.win.base.model.MybatisID;
import com.key.win.business.chat.eums.ImApplyTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

@ApiModel("[好友/组]申请")
@Data
@TableName("im_apply")
@EqualsAndHashCode(callSuper = true)
public class ImApply extends MybatisID {
    @ApiModelProperty("目标Id")
    private String targetId;
    @ApiModelProperty("申请人Id")
    private String userId;
    @ApiModelProperty("备注昵称")
    private String name;
    @ApiModelProperty("好友分组Id")
    private String groupId;
    @ApiModelProperty("申请类型[好友申请、组申请]")
    private ImApplyTypeEnum type;
    @ApiModelProperty("申请结果")
    private Boolean result;

    @ApiModelProperty("desc")
    @TableField(exist = false)
    private String desc;
    @ApiModelProperty("用户列表")
    @TableField(exist = false)
    private List<ImApplyDetail> imApplyDetails;
}
